<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix = "s" uri ="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
 	  税收信息分类管理

	<form method="post" action="zyClass!addZyClass">
		<s:hidden name="classPid" value="%{#request.classPid}"/>
    	添加总分类：<br>
    	总分类名：<input type="text" name="className"/>
    	总分类备注：<input type="text" name="classInfo"/>
    	
    	
    	
    	<input type="submit" value="提交"/>
    </form><br>
	<hr/>
	<form method="post" action="zyClass!updateZyClass">
    <!-- 分类表 -->
    <table border="1">
   		 <tr>
   		 	<td>ID</td>
   		 	<td>名称</td>
   		 	<td>备注</td>
   		 </tr>
   
    	<s:iterator value="#request.zyClassList" id="zyClass">
    		<s:hidden value="%(#zyClass.classId)" name="classId"/>
    		<s:hidden value="%{#zyClass.classPid}" name="classPid"/>
    	
    	
    		<tr>
    		<td>
    			<a href="zyFirst!showZyFirstByPidAdmin?pid=<s:property value='#zyClass.classId'/>"> 			
    			
    				<s:property value="#zyClass.classId"/>    		
    			</a>	
    		</td>
    		<td>  
    			<a href="zyFirst!showZyFirstByPidAdmin?pid=<s:property value='#zyClass.classId'/>"> 			
    				<s:property value="%{#zyClass.className}"></s:property>
    			</a> 
    		</td>
    		<td>
    			<s:property value="%{#zyClass.classInfo}"></s:property>    			
    		</td>
    		<td>
    		<a href="zyClass!deleteZyClass?classId=<s:property value='#zyClass.classId'/>">
    	 		删除
    	 	</a>
    	 	</td>
    	 	<td>
    	 		<a href="zyClass!showZyClassByIdEdit?classId=<s:property value='#zyClass.classId'/>">
    	 		编辑
    	 		</a>
    		</td>
    		</tr>
    		
    	</s:iterator>
    	</table>
    	</form>
    
    
   
  </body>
</html>
